﻿<UserControl x:Class="Squiggle.UI.Controls.DisplayMessageBox"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:converters="clr-namespace:Squiggle.UI.Converters"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="UserControl1" >
    <UserControl.Resources>    
        <converters:DisplayMessageConverter x:Key="displayMessageConverter"/>
    </UserControl.Resources>
    <Grid>
        <Border Opacity="9" Margin="5" Padding="5,0,2,0" CornerRadius="3" Height="22">
            <Grid>
                <TextBlock Cursor="Hand" Background="Transparent" x:Name="txbMessage" Foreground="Gray" Text="{Binding ElementName=UserControl1, Path=SelfUser.Properties.DisplayMessage, Converter={StaticResource displayMessageConverter}}" MouseDown="txbMessage_MouseDown" ><TextBlock.TextDecorations><TextDecoration /></TextBlock.TextDecorations></TextBlock>
                <TextBox BorderBrush="Transparent" BorderThickness="0" x:Name="txtMessage" MaxLength="150"  Text="{Binding ElementName=UserControl1, Path=SelfUser.Properties.DisplayMessage}" Visibility="Hidden"  KeyUp="txtMessage_KeyUp" LostFocus="txtMessage_LostFocus"/>
            </Grid>
        </Border>
    </Grid>
</UserControl>
